const http = uni.$u.http
import {
	baseUrl
} from '@/utils/config.js'

const api = {
	tag: '/api/miniapp/member/tag.php',
	tag_add: '/api/miniapp/member/tag_add.php',
	tag_get: '/api/miniapp/member/tag_get.php',
	circle_list: '/api/miniapp/member/circle.php',
	index_circle: '/api/miniapp/member/index_circle.php',
	setting: '/api/miniapp/member/setting.php',
	circle_num: '/api/miniapp/member/circle_num.php',
	leader_list: '/api/miniapp/member/leader_list.php',
	info: '/api/miniapp/member/info.php',
}

export const info = (config) => http.get(api.info, {
	custom: {
		toast: false
	},

	...config
})

export const leader_list = (config) => http.get(api.leader_list, {
	custom: {
		toast: false
	},

	...config
})

export const circle_num = (config) => http.get(api.circle_num, {
	custom: {
		toast: false
	},

	...config
})

export const setting = (config) => http.get(api.setting, {
	custom: {
		toast: false
	},

	...config
})

export const tag = (params, config) => http.post(api.tag, params, {
	custom: {
		toast: false
	},

	...config
})

export const tag_add = (params, config) => http.post(api.tag_add, params, {
	custom: {
		toast: false
	},

	...config
})

export const tag_get = (params, config) => http.post(api.tag_get, params, {
	custom: {
		toast: false
	},

	...config
})

export const circle_list = (params, config) => http.post(api.circle_list, params, {
	custom: {
		toast: false
	},

	...config
})

export const index_circle = (params, config) => http.post(api.index_circle, params, {
	custom: {
		toast: false
	},

	...config
})